package com.mf.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RetryRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MySelfRule {


    @Bean
    public IRule getRule(){
        // return new RoundRobinRule();
        //  return new RandomRule();
       // return new RetryRule();
        return new RandomRule_MF();
    }
}
